<div class="panel panel-default mt20">
<div class="panel-body">
	<div class="form-group form-inline">
		<div class="col-sm-12">
			<div class="row">
				<div class="col-sm-2">
					<input type="text" class="form-control" placeholder="产品名称" ng-model="searchForm.sale_name" ng-keyup="myKeyup($event)">
				</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" placeholder="票种名称" ng-model="searchForm.ticket_name" ng-keyup="myKeyup($event)">
				</div>
				<div class="col-sm-2">
					<button type="submit" class="btn btn-info search  btn-block" ng-click="search()">立即搜索</button>
				</div>
				<div class="col-sm-2 pull-right">
					<a class="btn btn-success  btn-block" ng-click="add()">设置预约</a>
				</div>
				<div class="col-sm-2 pull-right">
					<a class="btn btn-warning  btn-block" ng-click="seelist()">预约人列表</a>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
</div>


<div class="panel panel-default mt20">
<div class="panel-body">
	<table class="table table-condensed table-hover table-bordered">
		<thead>
			<tr>
				<th class="col-md-1 text-center">预约名称</th>
				<th class="col-md-2 text-center">预约时间</th>
				<th class="col-md-2 text-center">产品名称</th>
				<th class="col-md-2 text-center">票种名称</th>
				<th class="col-md-2 text-center">入场时间</th>
				<th class="col-md-1 text-center">排序</th>
				<th class="col-md-2 text-center">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="obj in objs">
				<td class="text-center">{{obj.title}}</td>
				<td class="text-center" ng-bind-html="obj.start_time"></td>
				<td class="text-center" ng-bind-html="obj.sale_name"></td>
				<td class="text-center" ng-bind-html="obj.ticket_name"></td>
				<td class="text-center">{{obj.admission_start_time}}--{{obj.admission_end_time}}</td>
				<td class="text-center">{{obj.asort}}</td>
				<td class="text-center">
					<a ng-click="edit(obj.id)" class="btn btn-info btn-xs">编辑</a>
					<a ng-click="delete(obj.id)" class="btn btn-danger btn-xs">删除</a>
					<a ng-show="obj.state == 1" ng-click="off(obj.id)" class="btn btn-warning btn-xs">下架</a>
					<a ng-show="obj.state == 2" ng-click="on(obj.id)" class="btn btn-success btn-xs">上架</a>
				</td>
			</tr>
		</tbody>
	</table>

	<div class="text-right">
		<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" max-size="maxSize" class="pagination-sm" boundary-links="true"
			ng-change="search()" items-per-page="itemsPerPage" previous-text="上一页" next-text="下一页" first-text="首页" last-text="末页"
			rotate="false">
		</pagination>
	</div>
</div>